From: Andreas Beckmann Date: Fri, 3 Dec 2021 18:28:10 +0000 (+0100) Subject: [PATCH 75/90] be more verbose on pthread errors X-Git-Tag: archive/raspbian/1.8-3+rpi1^2~62 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=16fe1008ec8dc1576c770c8c428548b4dd36b6d1;p=pocl.git [PATCH 75/90] be more verbose on pthread errors Gbp-Pq: Name 0075-be-more-verbose-on-pthread-errors.patch --- diff --git a/lib/CL/pocl_util.c b/lib/CL/pocl_util.c index 5ec92a9..95a8411 100644 --- a/lib/CL/pocl_util.c +++ b/lib/CL/pocl_util.c @@ -1629,8 +1629,8 @@ pocl_abort_on_pthread_error (int status, unsigned line, const char *func) { if (status != 0) { - POCL_MSG_PRINT2 (HSA, func, line, "Error from pthread call:\n"); - POCL_ABORT ("%s\n", strerror (status)); + POCL_MSG_PRINT2 (ERROR, func, line, "Error from pthread call:\n"); + POCL_ABORT ("PTHREAD ERROR in %s():%u: %s (%d)\n", func, line, strerror (status), status); } }